﻿<Window x:Class="CPPEI.BD.VMTool.Views.VideoMatrixWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="VideoMatrixWindow" Height="350" Width="525" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.Background>
            <LinearGradientBrush  EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFBAE4FF" Offset="0" />
                <GradientStop Color="#FF398FDF" Offset="0.41800001263618469" />
                <GradientStop Color="#FF006DD4" Offset="0.418" />
                <GradientStop Color="#FF0A3E69" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <Label Content="方案名称:" Margin="2"/>
            <TextBox x:Name="_ctlSolutionName" Text="{Binding Path=Name,Mode=OneWay}" Width="400" Margin="2"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <Label Content="方案说明:" Margin="2"/>
            <TextBox x:Name="_ctlSolutionCaption" Text="{Binding Path=Caption,Mode=OneWay}" Width="400" Margin="2"/>
        </StackPanel>
        <Label Content="视频源:" Grid.Row="4" Margin="2"/>
        <WrapPanel x:Name="_ctlWrapPanelVideo" Orientation="Horizontal" Grid.Row="5" Margin="50,0,0,0" AllowDrop="True"  >
            <Canvas  Margin="5" Name="canvas1" Width="90" Height="50">
                <Rectangle Height="50" Name="rectangle1" Stroke="Black" Width="90" Fill="#FFFFB300" >
                    
                </Rectangle>
                <Label   x:Name="_ctlLblVideoName" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="1213" Width="90" Height="50"    Foreground="Black" />
            </Canvas>
            <Canvas  Margin="5" Name="canvas2" Width="90" Height="50">
                <Rectangle Height="50" Name="rectangle2" Stroke="Black" Width="90" Fill="#FFFFB300" >

                </Rectangle>
                <Label   x:Name="_ctlLblVideoName1" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="1213" Width="90" Height="50"    Foreground="Black" />
            </Canvas>

        </WrapPanel>
        <Label Content="矩阵源:" Grid.Row="2" Margin="2"></Label>
        <WrapPanel x:Name="_ctlWrapPanelMatrix" Orientation="Horizontal" Grid.Row="3" Margin="50,0,0,0">
           

        </WrapPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="6" HorizontalAlignment="Right">
            <Button x:Name="_ctlBtnSave" Click="_ctlBtnSave_Click" Content="保存" Width="50" Margin="2"/>
            <Button x:Name="_ctlBtnCanle" Click="_ctlBtnCanle_Click" Content="取消" Width="50" Margin="2"/>
        </StackPanel>
    </Grid>
</Window>
